import path from 'path';
import { isDevelopment, getResourceStatic } from './utils';

// APP 缓存目录
export const APP_NAME = 'Join-Care Printer';

// 打印服务SDK的名称
export const PRINT_SERVICES_SDK_NAME = 'PrintFileService.exe';

// 打印SDK缓存路径
export const SDK_PATH = isDevelopment()
    ? path.resolve(__dirname, './static/application', PRINT_SERVICES_SDK_NAME)
    : getResourceStatic('./static/application', PRINT_SERVICES_SDK_NAME);

// 单次最大打印文件大小
export const PRINT_MAX_SIZE = 100;
